package com.fanshuai.springcloud.component;

import com.google.common.collect.ImmutableList;
import org.springframework.http.MediaType;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;

public class HtmlJsonMessageConverter extends MappingJackson2HttpMessageConverter {
    public HtmlJsonMessageConverter() {
        super();
        setSupportedMediaTypes(ImmutableList.of(MediaType.TEXT_HTML));
    }
}
